package com.qinghong.blog.mapper;

import com.qinghong.blog.dto.UserBackDTO;
import com.qinghong.blog.entity.Role;
import com.qinghong.blog.entity.UserAuth;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qinghong.blog.vo.ConditionVO;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author qinghong
 * @since 2021-12-06
 */
public interface UserAuthMapper extends BaseMapper<UserAuth> {

    /**
     *  获取后台用户数量
     * @param condition
     * @return
     */
    Integer countUser(ConditionVO condition);

    /**
     * 获取后台用户列表
     * @param condition
     * @return
     */
    List<UserBackDTO> listUser(ConditionVO condition);
}
